package designpattern.single.LazyMan;

import designpattern.single.HungryMan.HungryManSingleton;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Client {
    public static void main(String[] args) throws InterruptedException {
        new Thread(() -> {
            LazyManSingleton instance = LazyManSingleton.getInstance();
            System.out.println("instance1   "+instance);
        }).start();
        new Thread(() -> {
            LazyManSingleton instance = LazyManSingleton.getInstance();
            System.out.println("instance2   "+instance);
        }).start();
    }
}
